home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / infoserv / www / cern / dev / www-talk.9301-9306.Z / www-talk.9301-9306 / text1439.txt < prev    next >
Encoding:
Text File  |  1995-04-24  |  1.3 KB  |  27 lines

  1. >I agree with Robert's call for the more traditional lower-left-based
  2. >coordinate system, but feel obliged to point out that the X Window
  3. >System has 0,0 at the upper left.
  4.  
  5. Since, this issue doesn't want to die, I vote for staying with "0,0" at the
  6. top,left. Except for PostScript, that is the common usage within character
  7. based and bitmap based displays. Diverging from this practice now will
  8. require extra transformations to the local text and graphics environments.
  9. PostScript can be confusing sometimes because of the 0,0 at the bottom,
  10. left. Think about large objects that span pages and arbitrary scaling of
  11. objects where the "anchor" is typically at the top left of the object, not
  12. at the bottom left. Even in the simplest cases, where there isn't a "page
  13. boundary", drawing occurs from the top left, then down the virtual page,
  14. with scrollbars added if needed. With Hebrew, Arabic, Kanji, etc. which
  15. read right to left, you still start at the top of the page.
  16.  
  17. It would be possible to put "0,0" at some arbitrary location within an
  18. image, like the center of the image so that you have the image overlayed on
  19. a "normal" cartesian coordinate system. It requires a transformation as
  20. simple as putting "0,0" at the bottom left, plus defining where you want
  21. "0,0" and whether you want positive y to go up or down, prior to
  22. referencing any images.
  23.  
  24. ka
  25.  
  26.  
  27.